<?php

namespace App\Model;


/**
 * App\Feedback
 *
 * @property int $id
 * @property int $user_id 用户
 * @property int|null $order_id 订单
 * @property string|null $name 姓名
 * @property string|null $phone 电话
 * @property string|null $sn 设备编号
 * @property string $content 反馈内容
 * @property int|null $channel_number 通道号
 * @property string|null $remark 后台备注
 */
class Feedback extends Model
{
    public bool $timestamps = true;
    protected ?string $table = 'feedback';

    protected array $fillable = [
        'name', 'phone', 'sn', 'content', 'channel_number','images','order_id',
        'user_id','remark','is_handle'
    ];
    //

    public function order()
    {
        return $this->belongsTo(Order::class);
    }
}
